package com.acad_horizon.service.impl;

import com.acad_horizon.dao.MemberMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.acad_horizon.pojo.Member;
import com.acad_horizon.service.MemberService;

/**
 * 员工Service层
 *
 * @author Beholder1234
 * @create 2021-02-02-14:16
 */

@Service
public class MemberServiceImpl implements MemberService {

    @Autowired
    private MemberMapper memberMapper;


    /*
    * 通过 id 获取Member对象
    * */
    public Member getUserById(Integer id) {
        System.out.println("welcome in service......");
        Member member= memberMapper.getUserById(id);
        System.out.println("good byb service......");
        return  member;
    }
}
